<template>
    <div class="father-box">
        <h3>父组件</h3>
        <h4>收到爷爷组件传来的{{money}}</h4>
        <son-box :money="money" ref="son" />
    </div>
</template>

<script>
import SonBox from './SonBox.vue'
    export default {
        components:{SonBox},
        props:['money'],
        data(){
            return {
                name:"父组件"
            }
        }     
    }
</script>

<style lang="sass" scoped>
.father-box
    margin: 10px
    padding: 10px
    border: 3px solid red
</style>